﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001181 RID: 4481
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetPlayerInfoCsReq : IMessage<SetPlayerInfoCsReq>, IMessage, IEquatable<SetPlayerInfoCsReq>, IDeepCloneable<SetPlayerInfoCsReq>, IBufferMessage
	{
		// Token: 0x170038AB RID: 14507
		// (get) Token: 0x0600C886 RID: 51334 RVA: 0x0021C559 File Offset: 0x0021A759
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetPlayerInfoCsReq> Parser
		{
			get
			{
				return SetPlayerInfoCsReq._parser;
			}
		}

		// Token: 0x170038AC RID: 14508
		// (get) Token: 0x0600C887 RID: 51335 RVA: 0x0021C560 File Offset: 0x0021A760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetPlayerInfoCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170038AD RID: 14509
		// (get) Token: 0x0600C888 RID: 51336 RVA: 0x0021C572 File Offset: 0x0021A772
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetPlayerInfoCsReq.Descriptor;
			}
		}

		// Token: 0x0600C889 RID: 51337 RVA: 0x0021C579 File Offset: 0x0021A779
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetPlayerInfoCsReq()
		{
		}

		// Token: 0x0600C88A RID: 51338 RVA: 0x0021C58C File Offset: 0x0021A78C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetPlayerInfoCsReq(SetPlayerInfoCsReq other) : this()
		{
			this.isModify_ = other.isModify_;
			this.gender_ = other.gender_;
			this.nickname_ = other.nickname_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C88B RID: 51339 RVA: 0x0021C5C9 File Offset: 0x0021A7C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetPlayerInfoCsReq Clone()
		{
			return new SetPlayerInfoCsReq(this);
		}

		// Token: 0x170038AE RID: 14510
		// (get) Token: 0x0600C88C RID: 51340 RVA: 0x0021C5D1 File Offset: 0x0021A7D1
		// (set) Token: 0x0600C88D RID: 51341 RVA: 0x0021C5D9 File Offset: 0x0021A7D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsModify
		{
			get
			{
				return this.isModify_;
			}
			set
			{
				this.isModify_ = value;
			}
		}

		// Token: 0x170038AF RID: 14511
		// (get) Token: 0x0600C88E RID: 51342 RVA: 0x0021C5E2 File Offset: 0x0021A7E2
		// (set) Token: 0x0600C88F RID: 51343 RVA: 0x0021C5EA File Offset: 0x0021A7EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Gender Gender
		{
			get
			{
				return this.gender_;
			}
			set
			{
				this.gender_ = value;
			}
		}

		// Token: 0x170038B0 RID: 14512
		// (get) Token: 0x0600C890 RID: 51344 RVA: 0x0021C5F3 File Offset: 0x0021A7F3
		// (set) Token: 0x0600C891 RID: 51345 RVA: 0x0021C5FB File Offset: 0x0021A7FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Nickname
		{
			get
			{
				return this.nickname_;
			}
			set
			{
				this.nickname_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600C892 RID: 51346 RVA: 0x0021C60E File Offset: 0x0021A80E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetPlayerInfoCsReq);
		}

		// Token: 0x0600C893 RID: 51347 RVA: 0x0021C61C File Offset: 0x0021A81C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetPlayerInfoCsReq other)
		{
			return other != null && (other == this || (this.IsModify == other.IsModify && this.Gender == other.Gender && !(this.Nickname != other.Nickname) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C894 RID: 51348 RVA: 0x0021C67C File Offset: 0x0021A87C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsModify)
			{
				num ^= this.IsModify.GetHashCode();
			}
			if (this.Gender != Gender.None)
			{
				num ^= this.Gender.GetHashCode();
			}
			if (this.Nickname.Length != 0)
			{
				num ^= this.Nickname.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C895 RID: 51349 RVA: 0x0021C6F5 File Offset: 0x0021A8F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C896 RID: 51350 RVA: 0x0021C6FD File Offset: 0x0021A8FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C897 RID: 51351 RVA: 0x0021C708 File Offset: 0x0021A908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsModify)
			{
				output.WriteRawTag(40);
				output.WriteBool(this.IsModify);
			}
			if (this.Gender != Gender.None)
			{
				output.WriteRawTag(72);
				output.WriteEnum((int)this.Gender);
			}
			if (this.Nickname.Length != 0)
			{
				output.WriteRawTag(106);
				output.WriteString(this.Nickname);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C898 RID: 51352 RVA: 0x0021C784 File Offset: 0x0021A984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsModify)
			{
				num += 2;
			}
			if (this.Gender != Gender.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Gender);
			}
			if (this.Nickname.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Nickname);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C899 RID: 51353 RVA: 0x0021C7EC File Offset: 0x0021A9EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetPlayerInfoCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsModify)
			{
				this.IsModify = other.IsModify;
			}
			if (other.Gender != Gender.None)
			{
				this.Gender = other.Gender;
			}
			if (other.Nickname.Length != 0)
			{
				this.Nickname = other.Nickname;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C89A RID: 51354 RVA: 0x0021C855 File Offset: 0x0021AA55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C89B RID: 51355 RVA: 0x0021C860 File Offset: 0x0021AA60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 72U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Nickname = input.ReadString();
						}
					}
					else
					{
						this.Gender = (Gender)input.ReadEnum();
					}
				}
				else
				{
					this.IsModify = input.ReadBool();
				}
			}
		}

		// Token: 0x0400507B RID: 20603
		private static readonly MessageParser<SetPlayerInfoCsReq> _parser = new MessageParser<SetPlayerInfoCsReq>(() => new SetPlayerInfoCsReq());

		// Token: 0x0400507C RID: 20604
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400507D RID: 20605
		public const int IsModifyFieldNumber = 5;

		// Token: 0x0400507E RID: 20606
		private bool isModify_;

		// Token: 0x0400507F RID: 20607
		public const int GenderFieldNumber = 9;

		// Token: 0x04005080 RID: 20608
		private Gender gender_;

		// Token: 0x04005081 RID: 20609
		public const int NicknameFieldNumber = 13;

		// Token: 0x04005082 RID: 20610
		private string nickname_ = "";
	}
}
